package com.shop.member.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.member.dao.MemberDeliverDAO;
import com.shop.member.vo.MemberVO;

@Service
public class MemberDeliverServiceImpl implements MemberDeliverService {

	@Autowired
	private MemberDeliverDAO dao;

	@Override
	public List<MemberVO.MemberDeliver> listDeliver() {
		return dao.listDeliver();
	}

	@Override
	public int addDeliver(MemberVO.MemberDeliver deliverItem) {
		
		return dao.addDeliver(deliverItem); 
	}

	@Override
	public MemberVO.MemberDeliver getDeliver(String deliver_seq) {
		return dao.getDeliver(deliver_seq);
	}

	@Override
	public int updateDeliver(MemberVO.MemberDeliver deliverItem) {
		return dao.updateDeliver(deliverItem);
	}
	
	public int deleteDeliver(String deliver_seq) {
		return dao.deleteDeliver(deliver_seq);
	}
}
